package com.edu.app.service.impl.linkservices;

import com.edu.app.bean.linkbeans.SysContractLesson;

import com.edu.app.mapper.linkmappers.SysContractLessonMapper;
import com.edu.app.service.impl.SysBaseServiceImpl;
import com.edu.app.service.sys.linkservices.SysContractLessonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SysContractLessonServiceImpl extends SysBaseServiceImpl<SysContractLesson,SysContractLessonMapper> implements SysContractLessonService {
    @Autowired
    SysContractLessonMapper sysContractLessonMapper;

    @Override
    public SysContractLesson getContractLesson(Integer contract_id, Integer lesson_id)
    {
        return sysContractLessonMapper.getCustomerActivity(contract_id,lesson_id);
    }

    @Override
    public Integer deleteContractLessonByContractId(Integer contract_id){
        return sysContractLessonMapper.deleteContractLessonByContractId(contract_id);
    }

    @Override
    public Integer deleteContractLessonByLessonId(Integer lesson_id){
        return sysContractLessonMapper.deleteContractLessonByLessonId(lesson_id);
    }
}
